import request from '../flow-request'
import { ResponseData } from '@/types/api/public'
import { TableList,EditData } from '@/types/api/flowDeploy'
import { AxiosResponse } from 'axios'

type ConfigType<T=ResponseData> = Promise<AxiosResponse<T>>

export const getBPMNXml =(id:any):ConfigType<string> =>{  
    return request({
        url:'/Api/v1/workflow/process-definitions/'+id+'/processmodel',
        method:'get'
    })
}

export const getBPMNNode =(params:any):ConfigType<string> =>{  
    return request({
        url:'/Api/v1/process-definitions/meta/his-process-definitions/meta-data',
        params,
        method:'get'
    })
}